Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update animated-background.js #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

noflcl
Copy link

@noflcl noflcl commented Apr 12, 2023

Hackfix for 2023.4.0


name: A simple bug report
about: Applied changes to HA 2023.4.0, animated background not working
title: Bug report


Before applying patch a0bc82d

Prior to applying the patch I was running on HA stable.

I used docker to pull tag 2023.4.0 -> down my HA and proxy stack -> up stack /w success.

verified current:

Home Assistant 2023.4.0 
Frontend 20230405.0 - latest
Lovelace Animated Background `v0.6.3`
   /w changes from `a0bc82df3ebf251e065097b67caa734e3b544b78`

Patch applied, HA rebooted, no errors

HA Setup

To keep things simple I have applied the most basic of configurations to the root of my lovelace.

animated_background:
  default_url: https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4

Browser console log
Logs are clean no indication of errors.

Expected behavior
Random Live Background.

Devices

  • Desktop, Laptop, Mobile App Android
  • Firefox 110.0.1 x64
  • Chromium 111.0.5563.64
  • Companion App 2023.3.0-full

I have tried private tabs where possible, force stopping and clearing cache for apps.

I had come across a thread you commented on (I assume it was you based on avatar and username) about the original author and a link to an online resource. In that post your mentioned something about a patch to style.css is that required here? That thread comment is what brought me to your fork.

Would love to get live wallpaper running again for my vehicles hud :)

Hackfix for 2023.4.0
@noflcl noflcl closed this Apr 12, 2023
@noflcl
Copy link
Author

noflcl commented Apr 12, 2023

I am opening this pull request for comment again.

Even after adding dreimer1986/lovelace-animated-background directly to my hacs store at a final attempt to get this working... But alas still no animated backgrounds.

@noflcl noflcl reopened this Apr 12, 2023
@dreimer1986
Copy link

No clue why it works for others and not in your case. Maybe the F12 Console output would help here.

As long as you only need random background and maybe weather based selection... I work on a solution. Will still take a few hours to days to make things less complicated for the end user, but it already works over here.

@dreimer1986
Copy link

dreimer1986 commented Apr 16, 2023

Before I forget. Trying out my fork of this addon here does NOT need the style.js. You just need to be 100% SURE that the Cache is wiped. Check the more recent posts in the issue. Many ppl tell us there that they even had to copy the JS file to another folder. I think if you go to Settings, Dashboards and there above right the three dots and then Resources you can fix it by looking for the line with animated background in it and edit the hacstag number a bit. This SHOULD force a Cache reset. If this fails... read on.

If you feel like some experimenting... I finished my "solution" and the readme for it: https://github.com/dreimer1986/yourname_card_mod/blob/master/README-script.md This script is my solution for the problem. It's a bit more technical than opening HACS and clicking install, but should be doable. If you struggle there, feel free to open an issue over there. I am open for any reply as I am not the master of readme writing. Likely I forgot to mention something I would never even think about but the rest of the world would.

Add information how to add the addin as custom repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants